Set the location recording task to run until mainlist is destroyed