protecting against any type of exceptions