Close the graphics device to ensure valid PDF file
Don't count weekends (issue #1)