adjust exceptions thrown and fix synchronization on cache/transfer output.