Fix #110: Make sure the events are read before any exception is thrown