Wait for clients & events to be removed

Fixes #119.