An error trap on job manager