handlers: add unregister() function

Signed-off-by: David Aguilar <davvid@gmail.com>