Improved logging of timeout duration