Zero out takes and leave communities when closing account

Continuation of #2476.