LearnBoost/knox — pull request #180 by spollack (2013-05-20 20:38:04+00:00)
Title: ensure cleanup runs before callback invoked, to prevent one cause of double callbacks

ensure that cleanup runs before the callback is invoked, to prevent for example a thrown exception in the callback preventing the cleanup from happening.