my_asynchat: improve closing