Added Error handling for crashing modules