[~BUGFIX] Register shutdown object methods on object creation
This got lost during the new operator refactoring. To make
it work we add a register call to the object manager in to
all constructors and __wakeup methods.
Note: The object manager got a new api function to be able
to register those methods!