Remove interactive console. Control termination with a semaphore, and trigger this on a SIGTERM