This should not longer be necessary, as it's already done on when destroying the context