added logic to close all reports when printing is finished