Added reverting of ct padding on teardown
Merge pull request #1 from billysbilling/error-teardown

Adds reverting of ct padding on teardown