Adding sleep since java apps can take time to start