implement signal handling
implement tests for branch deletion