Client stops when server provider stops

I have a server app which provides some interface.
A client bind to the api and uses it.

So far so good.

They can be started in any order.

However when server stops then client is killed too. Notice that this happen even when client is not using the API.

Is there any way to prevent client from stopping when server dies?