Created general signals handler