Plugins: propagate a return value on openInput and openOutput

This is to be able to display an error message to the user if something went wrong with the physical device