Improving functionality of interrupting current running processes in the
middle of its execution