Handles errors consistently and on top level.