Add support for io signal handlers
fix our io signal handlers