How to run a Thread for a absolute limited amount of time.