Timeout bug fix

Noticed that the check for sting length for reason on timeout was set
incorrectly
Was checking the sting buffer, not the msg var
and was setting default msg incorrectly