Fixed exception thrown on timeouts.