correct quit packet handling