Cleanup and initial plumbing for first callback.