added a signal to close a qtask. Added a destructor too.