Feature: Implement apb_close().