Added doc example to convert date.max to infinity

See issue #163.
Untrack the connection before closing to avoid possible double-free

From Gangadharan S.A. Fixes issue #166.
Fixed doc index entry for infinite dates