added shutdown before close
unexpected deconnection handling + rebroadcast