It is still possible that the rest service is shut down before it actually responds.
The work of set-active should be moved to a separate call, not blocking the http request.
Lukasz , is this something you fixed for 4.3? if not lets discuss.
yep fixed for 4.3, so i'll close this. And also provided a customer-specific patch as well.