Added more detailed error messages.
Fixed an issue with the citizen socket.