Cleanup the API