Warning for connection closed should only be issued on error