Disconnects now handled gracefully by dispatching an event to the script with type 'serial' and value '' (empty string). Fixes #4