While this isn't anything major, the idea behind it is really immature and rude. Granted it was his fault for leaving it on, but all you had to do was simply hit the "sign out" button, and then continue with YOUR endeavours. Instead you decided to take the extra time and screw with his account, which is bad enough - but then you went a step further and closed it. Simply put: You're an immature little prick.