Fix capturing 'self' inside handler.