handled situation where shell returns an error message