2200 exception on session put. Also fixes Flask-Security and dependent exits