fixed all function not exists call index
catch exception when  not parse in url
add shutdown handler