Added some error handling for -o /path/to/openssl and a simple error reporting function.