check for already open plugins

when the user asks to run a plugin, ipba2 checks whether there is an
instance already open and in that case brings it in foreground instead
of creating a new one.