close server socket on exit