close job directly