failure handling in pligin loading