used awaitility to wait server shutdown completely as an temporary solution from #51