A reconnection option is a better solution for API users. Completely closing and restarting TWS will require doing so for all API clients too.