Fixed some dialog closing bugs
Added dialog when attempting to open a stream twice