Added exception pipe to fix error codes