Restored the normal signal behavior  when returning from the  function