Stop error message when executing exit