title: How to set the exit status code in a Symfony2 command?
body: <p>What's the proper way for setting the exit status code in a Symfony2 command?</p>
  
  <p>In plain php you can do this with <code>exit(123)</code>. But I guess Symfony2 has an OOP way. Is that right? I couldn't find anything on the docs though.</p>
  
  <p>I need this mostly because I want to be able to do something like this in Linux: <code>app/console my:command || { echo "Something went wrong, I'm gonna call handle_disaster now"; handle_disaster; }</code></p>