Added proper interrupt handling to server.
Added proper interrupt handling to server.