try/catch to cleanup