handling exception before session creation #90