Closing server socket after each connection