What is the proper way to disconnect Arduino from the Mac?

Hi, whenever I unplug the Arduino UNO from my MacBook Pro, the system restarts and then a gray screen shows up saying that the system was terminated unexpectedly. Then, the system asks me to press any key to restart. What is the proper way to disconnect the Arduino from the Mac to avoid this problem?

This is a problem with your mac not your Arduino. You should be able to just unplug the Arduino. I used to use a mac until recently and I never experienced this problem. Run disk utility and repair permissions on your mac. That might help. Macs permissions always get screwed up over time and it causes all kinds of weird behavior. I am not sure if this is the cause, but it is likely.

I had this problem when using serial communication thru a FTDI adapter to a standalone ATmega. It is probably buggy FTDI driver software in my case. It never happened if I closed the serial monitor before unplugging USB