Added timeout.

Now you cant crash it with connecting to it many times.
(Wont run out of threads(Connections will timeout))