Added features to control killing/restarting the bof process