Close figure to stop memory leak