Add Deinitialize method.