fix bug in partition cleanup thread
replace node/supervisor.loop with GenClient/GenServer