output log statement, cleanup