Raising OutputChainError instead of last exception

Making sure to log all exceptions so that
information is not lost.