Man rescued from subway track, seconds before train arrives