Fixed issue where jobs that were completed successfully appear 'failed' in P-monitor