Boot callback middleware