Gas hot water boiler shutdown