Issue #2486197 by oadaeh: Inactivate module before disabling. Also, changed wording and variables from enable/disable active/inactive.