Allow Engine.stop() to be called from the polling thread

darcs-hash:20090312175703-58103-98a3dd31cb0d6f28e6c6a056b641b51def935e25