simplified API stop(), added as an eventmachine shutdown hook