Handling exception at initialization