See https://github.com/symfony/symfony/pull/18140 and http://symfony.com/blog/new-in-symfony-3-3-better-handling-of-command-exceptions