Connection throw an exception it it can not end packet.