Fix randomly exception on remove Membership on signal handler.