closeConnection locks server mutex too