Various fixes

* fixes #201 (closing the move modal unselected the selection) and a related minor bug.
* fixes #195 (closing DS stream when reading a file)