corrected arity of on-close callback