Arduino not recognized in windows when computer restarts

I am using arduino nano v3 for a project. I need to read serial data continuously from arduino using the USB. But when the power goes off for few seconds and the computer restarts, the arduino is no longer recognized and "USB Device not recognized" error is shown. If I disconnect the USB cable and reconnect it then it works again. But this is not acceptable for the project. I'm using windows 7. How can I solve this problem? Please help. Thanks in advance.

orion_foysal: I am using arduino nano v3 for a project. I need to read serial data continuously from arduino using the USB. But when the power goes off for few seconds and the computer restarts, the arduino is no longer recognized and "USB Device not recognized" error is shown. If I disconnect the USB cable and reconnect it then it works again. But this is not acceptable for the project. I'm using windows 7. How can I solve this problem? Please help. Thanks in advance.

Why is the power going off for a few seconds? That's what you need to stop from happening first.