bth: error handling