AkkaHttpServer terminating abruptly after starting up

I have an API in Scala using Play Framework. When I start the server of this API, it starts and then it closes immediately, and I need it to be started to play other tasks. In the config.yml:

- run:
      name: start api
      command: sbt api/run
      background: true
- wait_for/sh-command:
      description: api healthcheck to run database evolutions
      sh-command: >-
         curl --silent --fail http://localhost:9000/healthcheck
      timeout: 120

in CircleCI, when this job is run, we get the output:

--- (Running the application, auto-reloading is enabled) ---

[info] p.c.s.AkkaHttpServer - Listening for HTTP on /0.0.0.0:9000

(Server started, use Enter to stop and go back to the console...)

[info] p.c.s.AkkaHttpServer - Stopping server...

[success] Total time: 20 s, completed Jun 15, 2022 4:19:17 PM

The AkkaHttpServer starts and then immediately stop. I suspect there is some kind of timeout that is not allowing the application to continue running, does anyone have any ideas? this job was working normally for a long time, this error started recently.