Server now terminates

Previously the server process would stick around, it now terminates
after handling one connection.