Fixes error handling in chrome app transports.