function close; on click button exit