Check Integrity blender script
This script checks the active mesh for open or non-manifold edges. If all edges have exactly 2 faces, this means we have a perfectly closed manifold mesh. Otherwise, the 1-face or 3-face edges are selected, so you can fix them easily... Useful if you need well-closed meshes, for example when calculating volumes.