Fix get plugCubed link + properly close

If plugCubed exists, close it and reset it to undefined so on next load
it comes back.