Fix: throw errors instead of alerts

We talked via email earlier and here the first change I would like to propose.