Try to put signal handling to h2d as well.