set a proper exit code when we die away

--HG--
branch : 0.9