Better error handling
- document is not available for download
- command fails to run