Fix #2: Deadlock when closing scroom while a tiff is being loaded

Also update documentation