[5.0] Kernel Fixes And Added Terminators

On request from @taylorotwell: https://github.com/laravel/framework/issues/6230#issuecomment-60601970.