Consider whentohangup in timeout (bug #1107)