changin job status to completed AFTER parsing output