remove heartbeat timer on close make sure only weak references are stored in bindings even below C++17