Added reason argument to sendPacketFailed