tweacking my_asynchat to catch exceptions