throw InvocationException when instantiating abstract classes