Moribund

A severely debilitated state that precedes imminent death.