I kinda solved my problem with using PuTTY on my Laptop while the Program was still running (on infinite loop). I forcefully press ctrl+shift+c to terminate the running Program and then i can login back to my RevPi peacefully.
Thankyou for your help anyway

Best Regards