Refactored release script to exit if a process fails