Close connection on invalid packet length