See this thread from last month:
Can't "exit" anything — Is it Inform, or is it me?
People also refer to the “Modified Exit” extension by Emily Short. I don’t know the current status of that, but it was originally introduced to handle commands like this.