You have to close the serial object once you are done with it:
s1 = serial('COM1'); % create serial object, it will be something different
fopen(s1=),% open your serial object
....% do whatever you want to do with it
fclose(s1);% close it when you are done with it
% get rid of the serial object
delete(s1)
clear s1