you also need to restore the options in all cases where an exception is thrown, otherwise the FileDownloader will be in a broken state for next packages