add user shutdown callbacks