add api-canary script

get ride of the finally clause