Kill thread first off and then close IO