First progress done on the new configuration.

- Added custom logger implementation.
- Catch only Exception instead of Throwable.