Added check for incorrectly catching multiple exception types