write an error log when session could not be initialized