Added 'safely' wrapper for tests to ensure that the done function is always run.