Catch general exception for term width detection

Based on what sys.stdout is, any number of exceptions
can be raised, and we only care if we're able to determine
the width or not.