Adding end to end exception handling

This is a major step towards improving CurateND's exception handling.

It is comprised of many commits because this was my work towards a verifying feature test.

DLTP-123
Extra empty line detected at body end.