Don't block the process while showing the dialog
Otherwise it's not possible to interact with the system tray while the dialog is open.