Fixes to make instance reusable
Merge branch 'master' into hack/with-binary-libraries-nightly

* master:
  Fixes to make instance reusable