Fixed exception raised if timeout is triggered