Stuck in recovery while doing factory reset
Your device is currently in either:


(Non-Samsung) Fastboot Mode 

or...
(Samsung) Download Mode. 


In this case, because you're not actively transferring files, you should be able to safely reboot it.