improved error handling of php processing times