Fixes for compression context manager

Let the original exception to bubble up from within context namager.