terminate background process after rebalance