build: use java 7+
fix: track server status to have better synchronization