add check for async CanClose (#86)