OO-2052: remove group memberships first to prevent timing issue with the asynchronous removing of subscription (patch S. Clemenz)