Code

fix another crash on exit caused by trying to do stuff when canvas is no more