Removed mantidunstable dependency; let file.close() to closs all