Added auto-closing

Hi! It's my first pull request, please be gentle with me... :-)
`closeDoc()` closes the PDF document. It's a pity it's not possible to minimize the window or close Adobe Reader completely. Adobe removed this functionality for "security reasons"...