Fixed EOFError in storage interactive mode

Pressing Ctrl-D now does clean closing of the database.