Added reset of terminal if SSH