example: Add JULHandler for fine-grained logging control
Fix possible resource leak

by ensuring that FileOutputStream is closed.
example: add comments/javadoc to JULHandler