Improved cleanup

Proper event unsubscription in ImageAdornmentManager. Might be more to
do.
Fix for minor badly-handled exception

Occurred when code file wasn't part of a project and opened with a
solution.