Write the cleanup() method.
Merge pull request #43 from Hywan/cleanup

Write the cleanup() method.