Changed from a waiting mainThread that is to be interrupted and then calls onStop as stop-initialization-procedure to a shutdownHook that calls onStop.
UnregisterPush is now synchronized (analogue to registerPush)