client.c - prevent multiple clean() call