Add debug message to connection
Close packethandler correctly