close plots after saving