Only send message when there is something to send
changed some logging stuff
Don't close first tab
The command registerer works now :P

I know it's a bit too much work for what it does ;)