Global Timeout Fix

Add global error handling for ajax calls