Issue #2389061 by slashrsm: Fix typo in __sleep() and make sure only one...

... object is subscribed to events.