Few bugs fixed

klient.c :
- client now ends when received server error message

server.c
- SIGINT is now redirected to main thread