"Internal Error. Unable to release <unknown> object."
before you end the program, type:
setbuffer desktopbuffer()
You must always point to a buffer .. if you previously switched to a canvasbuffer or imagebuffer then you must return to the desktopbuffer again..