Edit/open: wait for background process to finish (#49)