Added correct implementation of the Quit call.