Fixes issues caused by https://github.com/yiisoft/yii/issues/835 where it was no longer possible to terminate the application silently.
See http://www.yiiframework.com/forum/index.php/topic/47227-issues-with-fixed-bug-835-onendrequest/