Clear the viewer when cancelled.