Add NULL when object is closed