call callbacks in service thread, cleanup

tested with external systems. Our server still need fixes.
if you donnot want dependancy on asio I can replace it with custom code, it is very simple.