line ending.
move kernel terminate to hook_exit.
don't return a thing you don't intend to use.
if the response from symfony controller isn't HTML, short circuit page delivery.
add conf path to kernel parameters.