I believe I have the answer to your question. It's possible you have iMessage in the list of apps for start up at login.
To find out if you do:
System Preferences -> Users & Groups in the
system row -> Click on login items tab -> Find out what apps you have starting up every time you log in.
😎
http://www.apple.com/findouthow/mac/#appstartup