Hi Oleg, here's the patch that should address the mentioned problems. Or does it add more? :) I try to delay the notification of init till the detaching is complete.