Adds missing close callback.