Option to force close process when plot window is closed