Fixed pipeline facade in backend so it handles exceptions correctly, issue #561.