Adds defer and errors example