Do not invoke user callbacks or trigger the component if it is not running

Possible fix for #61: addEventPort callbacks are called too often