Set Subjob#status to 'failed' when an error is thrown