chardec and button drivers exit functions updated