Removing useless exceptions