Created a basic shutdown function
Fixed start_all and stop_all
Fixed networking shutdown
Fix typo
Changed final message...
Shutdown also threads
Register shutdown function of the server
Forgot one thread
Shutdown on SIGINT (allow shutdown of the server)
Shutdown correctly also the console
Merge pull request #2 from pietroalbini/fix-shutdown

Fix shutdown