Don't hang after closing connection to servers