Adding controller close method.
Adding dist build.