added serial closing and changed the messages