SMH says it can no longer afford search-and-rescue work in one of the world's most dangerous migration routes.