adding more error checking to Terminal client