Fixed GUI stalling while connecting (issue #53)