The one I use is called IBController. You can get it at the TWS Yahoo group... http://finance.groups.yahoo.com/group/TWSAPI/files/Auto Login Codes/
Here is the current version (it obviously can't input your one time passwords) but I like the "put the restart one hour in the past option"
And the other half. I might make a little script JUST to do the set the restart time 1 hour in the past trick.