Fixed razor_api and added teardown_policy script for razor