Close figures after saving PDF