Added option to decide what to do if we encounter an error

This can be Continue (default) or DropEvent