Kill both threads when /quit is sent or received