Add support for handling QUIT.