Fixed a bug in mockirc where it didn't properly handle clients closing.