only show 'connection closed' when a connection acutally has been established