Adding check prompt, bad exit code not working