Don't attempt reconnect when closing connections
Fix NPE when closing