util: install signal handlers only once