BUG: make sure to catch and throw errors if session can't be del/set