DeelteOneTrack was closing app
Added csv logging utility functions to AbstractController. Removes some unsightly nesting and facilitates code reuse.