Add support for HUP signal