After realizing that the sleep time doesn't delay the closing of the window
from the user's perspective (as it's already closed before the sleep occurs),
go ahead and give it a more generous amount of time to wait for the Qt
thread to finish.