Update PrintHTML.java

Added thrown exception and dispose of  JFrame in order to avoid incorrect Java popup  display/ behavior
You should be able to just throw e rather than instantiating a potentially unrelated PrinterException.