Water hammer treatment of gas steam generator