Catching any exceptions from modules, if thrown.