This problem seems to occur if you haven't filled in either of the Full Name or Email Address fields on the General page; you can work around it by filling in at least the Full Name field. If this isn't the problem please open Console.app and look for errors from SourceTree and post them here.
Ok, filled in and now it's closing. Thanx.