move close event out of the request lifecycle.
Merge branch 'master' of github.com:laravel/framework