fix closed check in AsynExec.h