Default error for open should be that there is no entry.
Fixed whitespace consistency in the serverconnection code and also added a mutex lock to the heartbeat function (so that we don't have issues with heartbeats messing up the pipeline for other methods.