NSM: Fix occasional deadlock of session manager GUI when displaying "Command failed with..." message.

Closes #44.