Update index.php

If the connection is aborted, the process is killed with proc_terminate function.