Attempted to fix bug in client quit handler