Update decorators.py

Close connection before the bulk_call