Fix error handling in case of serverspec.