Fixed a bug in disconnecting in irssi.