SERVER-8618: clean up shell and file exception messages
SERVER-8596 cleanup upgradeId field after upgrade
SERVER-8634: make _v8_function read-only
SERVER-8635: fix crash caused by executing mr::State::~State() after JS exception