Fix server socket leak