Update server.js

sending the kill sigterm to the child process to stop the process, rather than just disconnecting. A webserver application would continue to run and needs to be shutdown manually everytime