Cleanup Local in app.py before exit