connection closing fixes and infomessage