There is a problem with writing code in which you must select you code before typing. Also increasing time causes the drone to have difficulties with circling around an object to mine.
When all resources are mined, nothing comes back and nothing seems to indicate that depleted resources would be a problem. All in all, nice concept though.
edit: I am just a idiot