add error handling to release script