Only call PacketSendEvent if there are no errors in writing