Detach on match end