Exit after header sent to stop furterello php code execution

Update also first letter of location header to uppercase