A woman has walked out of court after admitting to aiding her terminally ill husband in ending his own life in a suburban home.