Remove connect middleware