fix(ESX): throw exception when unable to deploy template