App now does cleanup before telling delegate of
success or failure.
Merge pull request #3 from brettohland/master

Changing when cleanup is called