added start and close messages to server