finished up the "master-close" event - when master closes its server, it can attach some closing data.
finished up tests.