Remove trainer old-style exceptions (c.f. issue #149)