Updating run code to exit with error and clean up should server die