on_close proof of concept.