By design, the fan will keep running for a short time after the flow of water stops. This helps ensure constant water temperatures during rapid starting and stopping, as well as exhausting any residual gas flue products from the unit. It will turn off on its own after a few moments.