Issue15 premature close

Moves close() to __destruct()