fix getting job exit status