Cleanup active mode