Man escapes in the nick of time as car catches fire