The Bank of Tanzania (BoT) has closed five non-performing banks to protect the stability of the banking system.