fix output encoding; wait a bit after unity terminates for full log