Closed application before ReleaseCom

How can I ReleaseCom the last Query of closed application? Can't find opened query if I run one again the application and need create pdf.
But cant create because the last Query was not ReleaseCom.

thx.