changed code so that the eclipse window does close when the result frame is closed