Where's the `handle_close()` function? Maybe a left-over from a first implementation?