Making closing window optional.