Disturbing but with lots of plot holes

Rating: 4/10 (31 May 2015)

okay so i am fan of sci-fi movies and appreciate even the disturbing ones. This one was very good overall but left me dumbfounded at the plot holes.
Nathan(Oscar Isaac) is shown as a very aristocratic and obsessed genius who has made a major break through in AI. And Caleb (Domhnall Gleeson)is an employee personally selected for the task of Turing test. Add some manipulation by Nathan and there you have it.
The director might have been confident filming the climax scene when Nathan exposes Caleb's plan and Caleb is shown slouched and depressed. I could not connect to that scene, as for me I was glad the genius was catching up.
I was more concerned about the possibility of a human falling so head over heals for a machine that he would betray his own race.
When the first power failure occurs during session-2 or 3 and the machine confides into Caleb I thought he would report it to Nathan directly however he starts on a one-way path that ends deservingly well for him. How can anyone be so vulnerable?
For a genius to have not foreseen the worst case scenario is the biggest plot hole. Add to that his drinking problem and I can't fathom how he survived those few miserable years that he had been living on that sterile facility. Further how could he have overlooked the connection between latest version of AI and power shutdowns?
Had these points been addressed it would have been more believable. Yeah I accept it disturbed me but in the wrong way. I didn't want to bring it up but it seems necessary to mention here that the only reason for such movies is to indirectly induce and promote Darwinism. Well good try but not good enough.