Fixed potential bug where plugins could become permamently locked due to non standard errors