Added autoTrap function to Chain so that default handlers can be registered once