repair the custom exception.
but it's still too slow.
really repair custom exception uploading server.
this moment I use sleep(500), 
to let main thread wait for uploading thread.