Implemented timeout immediately feature when timeout value is -1. This led to several bug fixes of the resolving timeout logic.