Fixed common thread pool shutdown on initilization crashes

The most important change is the `cleanup()` in the initialization catch block.

This PR also fixes all remaining CheckStyle errors (and most  warnings in the files I touched)