when session.save error should return error