Updated exception handling for create and delete domain calls