Suppress interrupt exception print in --standalone
Add a few more type hints