shell remove close fix