Prevent processing already finished main jobs
Prevent processing already finished main jobs

Clean up task queue after ending main jobs.
This action prevent prevent wrong service
job work flow for already finished tasks.

Change-Id: I6b0bbb7c34f52ff8136fe8b230ffb00da64040aa
Related-Bug: #1377097

stackforge/fuel-astute,eayunstack/fuel-astute,eayunstack/fuel-astute,stackforge/fuel-astute