multipart: fix listener removal