The function closes API. Calling any function afterwards leads to returning FunctionFailed.
Possible ReturnCodes result values: