call finish function for ca app