kill process whenever we enter background (probably a temporary fix)