Check for errors prior to any initialization