Andy Murray's likely final game at the Australian Open has ended in an epic five-set loss.