You need to boost other public transport services to provide at least some level of late night service. In Sydney, they run substitute buses between many railway stations from 0000-0430 - it's not great, but it's possible to use buses to provide a minimum level of service coverage when the railways are shut down.