Performing cleanup after PDF file creation