Await process termination or timeout when shutting down karaf.