Exit process when executing command successfully.