Client: fixed registration of custom signal handler