Don't use "and" because it doesn't execute the exit.

Updated purpose color