I am trying to do a print operation in my macOS application in Swift. I am having a PDFView, which I am trying to print. The print window does open, however I can not close that