Avoid gratuitous conversion from byte[] → String → byte[] and write the content directly.
FindBugs: dead store of null.
Unused method parameters.
Explicitly catching just NumberFormatException from Integer.parseInt.
Flush logger before sleeping to ensure hung sessions are properly diagnosed.
Merge pull request #6 from jglick/misc-fixes

Misc fixes