First pass of removing open-run-close for tasks/monitor.db calls