utils: install signal handlers only once