Prepare to manage errors