Don't persist headings. Update stopTask to gracefully handle being called on a null/undefined task