Corrected an issue with Link when quitting