Fix UI blocking when launching connection

Use a timer to clean up temporary files instead of blocking the UI
thread. Also disable everything during this period.

#15