I run TWS as a windows service, however you need to know java to figure out how to do this. But this only hides the gui, its still running in the background.