Add missing __gc for Condition & Bug fix

Fixes #883
Merge pull request #1008 from dalkon/master

Add missing __gc for Condition & Bug fix