Closing figures to clear memory