close master socket if disconnects from slave. added ls printout to say when connected