Topological inflation with graceful exit