handle /quit properly