Once again PythonCleanupHandler runs. Added a test for it. Also added
phase name to some error log entries, should make things a little
clearer. Fixes #5.