Fix Stomp test issue. Adding a proper time delay to allow server to close the socket.