Cleaning up callbacks.