The NSW premier said he will do all he can to keep a racist preacher's prayer hall closed in a bid to confront division in the wake of the Bondi beach massacre.