Added finalizers to widget class (including option and env-form)