Deprecated the callback in close()