Add callable as shutdown hook.