Remove any remnant of application context.