Adding error throwing to exec to guarantee mocking for the interim