replace server smartpointer by conventional one to gain control about de...

...structor call order