Don't open a shell when a command-line execution fails.

Really simple fix to prevent a shell from opening after an exception is raised.