Reset lastAPIConnection on file load