added a verbose option
added exception handling around the subprocess call