This bug was causing ```DB already closed``` exceptions upon logout and logging back in.