Implemente input port switch on error