Implement imosh::die and imosh::quiet_die.