Fix bug : window service crash and add greatful close

1  If stop windows service ,crash . the callback must is std call 
       service_main_entry
      service_handler_entry
2 window service can't greatfull stop ,event not wait for thread
3 auto handler use csbl::shared_ptr better than boost::shared_ptr