Set error mode to exceptions