MainWindow: Handle device selection failure

This fixes bug #455
StoreSession: Fixed completion mechanism

This fixes bug #451