set the exit status