added logging of quit messages