Better exit cleanup strategy. Added OBJ export code in mesh_helper.
Bug fixes for OBJ mesh writer