Fix #14

Race condition could leave an eternal hearbeat hanging
preventing from collecting locks for a dead process