added some more close functions to the core.
fixes #537
Merge branch 'development' of github.com:shoestrap/shoestrap-3 into development