Move error log path to datastore option.
Adds session existence check. Moves error log path to datastore option.