Added IOException check to jsp for functional tests.