Trohovsky exception problem

@trohovsky reported an issue with Splitlog and submitted a stack trace to show the problem. This pull request does multiple things:

- It reproduces the issue using the stack trace.
- It fixes the issue.
- And of top of that, eliminates a possible (although unconfirmed) classloader leak when Splitlog is used within a JEE container.