I had the same issue and it was because I was running with DEBUG set to true. There was an error in another plugin causing an alert stopping the rest of the script from running. setting DEBUG back to false got everything running again.
Problem fixed. For anyone who may run into this problem, make sure that queries are ended properly.