Getting rid of catching Throwable according advises of Sonar: Throwable
and Error classes should not be caught