improving error handling when opening (non)-recoverable images