1) Added a 'try catch block' to sendPacket to avoid exceptions when PHP script is...