fix deadlock happens in lifecyclelistener and add note about blocking calls