Also fix handling of failure to release the import lock.
Attach a file by drag & drop or click to upload