Avoid exception when deleteing Context because of protected setter. Closes #42