added trace information to monitor presentation shut down process;
get rid of "cannot connect to shape database..." message box when shape gallery is corrupted.
fixes #544
refined some trace information