Remove protocol handler at program exit.