Removed close server code. Tests pass but must be closed with ctrl+c
Add graceful exit mechanism