Fixed two imports and two undeclared checked exceptions.