debug issue where terminal crashed trying to connect