client side terminate works