Modified listener to send error messages back