Handle pipeline loading errors and send a message

So the client will be aware if the input ports does not exist (as file or uri) and if the input documents are not valid