Remotery: Fix sample leak on shutdown/failure to send data to the viewer.