Set the proxy pointer as null after destruction