Plot windows can now be properly closed and restarted.