feat(context): Run module's pre-delete phase when deleting a context (closes #4588)