added debug code and handled the worker disconnect case
added debug code and handled the worker disconnect case

J-Gravity/J-GravityDispatcher,J-Gravity/J-GravityDispatcher,J-Gravity/J-GravityDispatcher