Added throwing error when command return not zero status.