Exception handling changes for deployment operations