delete framegrabber on suspend by setting it to nullptr