Remove use of gm:leave/1: it does almost nothing, master does not invoke it, and it's racy anyway.