Commit bad2702c433227fcab1690303993e5861c6861b5

Edward Thomson 2016-02-06T11:25:47

global: refactor setup and cleanup Move the common initialization and cleanup methods to reduce unnecessary duplication.