Handle error in running module a bit better