I did this in the very first RPG I played. It was Star Wars and I was playing a smuggler (who thus had a ship). Obviously the GM intended my ship to be used to move the party around. Well, the jedi PC shows up wanting to board my ship as I'm getting ready to leave. I don't know this guy so obviously the first thing my character would do would be to say that and then turn the turrets on when this strange jedi tried to insist on joining me, followed by promptly flying off so he ended up needing to find another way to our adventure.
No idea why I was like that. The player was pretty much my best friend at the school, too, so it wasn't anything personal against him. I think I was just trying to hard to do what "my character would realistically do" instead of just playing a game.