will_close is working