thread start/stop properly