Make all connections closed before close the server