fixing sign in flow

setting the call to close the background page asynchronously after the
signin step