Catch document not found exception