catch exceptions on initialize