Use the before and after hooks to make sure netcat processes get killed even when tests fail