Added functionality to handle client quit messages