In this way, shut wrongly (4)
I believe the answer is:
thus
'in this way' is the definition.
('thus' can be a synonym of 'in this way')
'shut wrongly' is the wordplay.
'wrongly' indicates an anagram.
'shut' is an anagram of 'THUS'.
(Other definitions for thus that I've seen before include "an original Christmas gift" , "Like so" , "In this manner" , "Consequently" , "Shut (anag.)" .)