Finish function call in protocol state