Ensure that temporary graph is deleted even if exception occurs
Tip for large data