Closes server connections