general: Delete objects on destruction

Should really use shared_ptr or something instead, but for now let's
do like this. This will allow removing stop() in the long run.