Include whitespace before loop constructs

Currently the eclipse will use
for(condition)

After this the eclipse will do
for (condition)

notice the space between for and start of the open braces

similarly for case, if, while, synchronized and try blocks.
Log failure stats when node goes unavailable
Log the number of failures, percentage when the node goes unavailable