When Mary Scanlon’s husband walked out on her and their two young children, it was to be a defining moment in her life.