badwords: implement local quit handler