Added log messages in case context init fails.