amzirc: add quit message handling