Shutdown on SIGINT (allow shutdown of the server)
Shutdown correctly also the console