Run socket reading separate thread