Fix error checking in packet handlers, increase min. packet lengths