Changed code. Multiple restart cannot be done in the idea 12. It will be fixed in EAP 13