Prevent an Exception from happening.