Modify Program.cs to return failure code when tests fail

The TeamCity visitor does not collate summary messages and consequently
prints messages but fails to report an error code. This causes TeamCity to
fail the build, but pass the step