Plugwise - various fixes 

Fixes resource release + minor code clean-up related to Quartz jobs

[Due to fact that I forked my clone after the recent TCP modifs, the changeset still includes the 2 commits related to the TCP changes. I am not sure if you can accept this pull request partially...?]