Add some error handling to the quote script