running client timer loop in separate thread