requesocks exception handling