Improved osTicket error handling.