sync task closing
avoid parsing during disposal of smart pointers