removed reconnect rubbish, fixed close