- Improved the logging.
- Improved the error handling.