Webcontainer sockets can possibly still be open after native process kill

Description

Restarting a container quickly after stopping it, may result in sockets still being in a lingering state for a small moment. This results in the starting webcontainer to throw the "address already in use" exception.

To prevent this, allow for a small wait time before restarting the container.