Adding more error checks

- Added error checks like facility not available due to network connectivity failure
- Changing code to accommodate condition where ticket type is not available