Check for exception after calling constructor