Added close method to close button in GUI so socket closes and JFrame