Fix sage signal handling