Improved methods which disable standard outputs to reenable these outputs if an exception occur inside the context