Keep MOSFET open using capacitor
Some assumptions were made by me during simulation, but the NMOS will gradually turn off after 375 seconds. It will take approximately 20 seconds to fully turn off under my simulated conditions. YMMV.