Systems and methods for stopping an engine of a vehicle are described. In one example, the method anticipates when an engine is expected to stop and modifies engine operation so that less fuel is in the engine's intake ports when the engine is stopped so that the fuel may not escape the engine when the engine is restarted.