Background server gets terminated

# Scala CircleCI 2.0 configuration file
# Check for more details
version: 2
      # specify the version you desire here
      - image: circleci/openjdk:8-jdk

      # Specify service dependencies here if necessary
      # CircleCI maintains a library of pre-built images
      # documented at
      - image: circleci/postgres:9.6

    working_directory: ~/repo

      # Customize the JVM maximum heap limit
      JVM_OPTS: -Xmx3200m
      TERM: dumb

      - checkout

      # Download and cache dependencies
      - restore_cache:
          - v1-dependencies-{{ checksum "build.sbt" }}
          # fallback to using the latest cache if no exact match is found
          - v1-dependencies-

      - run: ./tools/activator/activator clean compile

      - save_cache:
            - ~/.m2
          key: v1-dependencies--{{ checksum "build.sbt" }}

      - run:
          name: Starting server
          command: ./startServerForTests
          background: true

      - run: wget "http://localhost:3333/healthcheck"

      # run tests!
      - run: ./tools/activator/activator test

My config.yml file is above. I got it almost working, but for some reason when I start my server for tests i see the follow error message and then wget always fails since the server is being stopped. How do I ensure the server stays up for the next two run steps?

Listening for transport dt_socket at address: 9999
[info] Loading project definition from /home/circleci/repo/project
[info] Set current project to zently (in build file:/home/circleci/repo/)

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

[info] p.c.s.NettyServer - Listening for HTTP on /

(Server started, use Ctrl+D to stop and go back to the console...)

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