I think it's a bug.
If you start GlassFish and stop immediately GlassFish. Intellij does not wait ended up GlassFish. And you cant kill Glassfish.
Then you can not start the server because the port is in use. You have to restart Intellij.
Can you fix it in version 12?
OS: Ubuntu 12.04, Kde 4.9