mon: fix occasional memory leak; clean up dispatch return codes