New feature & dried memory leak.

1.) New feature: clear processed jobs.

2.) Dried memory leak.